//
//  XYPerson.m
//  str
//
//  Created by qianfeng on 15/8/8.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import "XYPerson.h"

@implementation XYPerson

-(id)initWithName:(NSString *)name andAddress:(NSString *)address andCompany:(NSString *)company andPersion:(NSString *)persion andPhone:(NSString *)phone andTel:(NSString *)tel{
    self = [super init];
    if (self) {
        _name = name;
        _address = address;
        _company = company;
        _persion = persion;
        _phone = phone;
        _tel = tel;
       
    }
    return self;
}
-(NSString *)getName{
    return _name;
}
-(NSString *)getAddress{
    return _address;
}
-(NSString *)getCompany{
    return _company;
}
-(NSString *)getPersion{
    return _persion;
}
-(NSString *)getPhone{
    return _phone;
}
-(NSString *)getTel{
    return _tel;
}
-(NSString *)description{
    return [NSString stringWithFormat:@"姓名:%@ 地址:%@ 公司:%@ 职位:%@ 手机:%@ 电话:%@",_name,_address,_company,_persion,_phone,_tel];
}


@end
